British flag theorem